<link rel="stylesheet" type="text/css" href="<?=base_url('content_management')?>css/tabs.css" />
<script language='javascript' type='text/javascript' src="<?=base_url('content_management')?>scripts/content.js"></script>
<script language="javascript">
var arrComboItems = new Array(
<?$i=1;foreach($items as $module){
    if($i==1){
        echo 'new Array(\'{'.str_replace(' ','-',$module->name).'_'.$module->{BLOCK_BLOCK_ID}.'}\', \'<span style="font-size:8pt;">'.h($module->name).'</span>\')';
    }else{
        echo "\n".',new Array(\'{'.str_replace(' ','-',$module->name).'_'.$module->{BLOCK_BLOCK_ID}.'}\', \'<span style="font-size:8pt;">'.h($module->name).'</span>\')';
    }
    $i++;
}?>
);

var arrPagesItems = new Array(
<?$i=1;foreach($pages_combo as $page){
    $url = site_url().'?fid='.$fid.'&pid='.$page->{PAGE_PAGE_ID};
    if($i==1){
        //echo 'new Array(\''.site_url().'?fid='.$fid.'&pid='.$page->{PAGE_PAGE_ID}.'\', \'<span style="font-size:8pt;">'.h($page->{PAGE_TITLE}).' page</span>\')';
        echo 'new Array(\'<span url="'.$url.'">'.h($page->{PAGE_TITLE}).'</span>\', \'<span style="font-size:8pt;">'.h($page->{PAGE_TITLE}).' page</span>\')';
    }else{
        echo "\n".',new Array(\'<span url="'.$url.'">'.h($page->{PAGE_TITLE}).'</span>\', \'<span style="font-size:8pt;">'.h($page->{PAGE_TITLE}).' page</span>\')';
    }
    $i++;
}?>
);

</script>
<table cellpadding="1" cellspacing="1" border="0" width="100%">
  <tr>
    <td valign="top" width="270">
      <div id="tree_section">
        <iframe src="<?=site_url()?>admin_ajax/content_management.content_management.tree_lists" width="270" height="500" frameborder="0" scrolling="auto">
        </iframe>
      </div>
    </td>
    <td valign="top">
      <div id="page_content"></div>
    </td>
  </tr>
</table>


